package day05;

public class ArrayDemo3 {
    public static void main(String[] args) {
        int[] arr=new int[5];
        System.out.println("数组的长度是："+arr.length);
        System.out.println("数组第一个值是："+arr[0]);

        arr[0]=1;
        arr[1]=2;
        arr[2]=3;
        arr[3]=4;
        arr[4]=5;
        //arr[5]=6;
        System.out.println(arr[arr.length-1]);
        System.out.println(arr[4]);
    }
}
